package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.dao.base.BaseMapper;
import cn.com.thinvent.dispatch.entity.ModelDatasource;
import cn.com.thinvent.dispatch.entity.file.fileShowVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ModelDatasourceMapper extends BaseMapper<ModelDatasource> {

    List<ModelDatasource> list(@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);

    Long count(@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize);

    List<fileShowVo> listUnStruct(@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize, @Param("tagId") Integer tagId);

    Long count1(@Param("pageBegin") Integer pageBegin, @Param("pageSize") Integer pageSize,@Param("tagId") Integer tagId);

    void delUnStruct(@Param("dId") Integer dId);

    List<ModelDatasource> queryByIds(@Param("datasourceIds") List<Integer> datasourceIds);
}
